package org.ecbox.sdk.domain;

import java.util.Date;

import org.ecbox.sdk.EopObject;
import org.ecbox.sdk.dict.TokenType;
import org.ecbox.sdk.internal.mapping.ApiField;

/**
 * 访问令牌
 * 
 * File: TokenTo.java<br/>
 * Description: <br/>
 * 
 * Copyright: Copyright (c) 2012 ecbox.com<br/>
 * Company: ECBOX,Inc.<br/>
 * 
 * @author chenxiaochun
 * @date 2014年4月29日
 * @version 1.0
 */
public class Token extends EopObject {

  private static final long serialVersionUID = -6540570797863085784L;

  @ApiField
  private Long id;

  @ApiField
  private Long appId;

  @ApiField
  private String loginName;

  @ApiField
  private String accessKey;

  @ApiField
  private String refreshKey;

  @ApiField
  private Date expireTime;

  @ApiField
  private Date reExpireTime;

  @ApiField
  private Long userId;

  @ApiField
  private Long companyId;

  @ApiField
  private Date loginTime;

  @ApiField
  private Date refreshTime;

  @ApiField
  private TokenType tokenType;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getAppId() {
    return appId;
  }

  public void setAppId(Long appId) {
    this.appId = appId;
  }

  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public String getAccessKey() {
    return accessKey;
  }

  public void setAccessKey(String accessKey) {
    this.accessKey = accessKey;
  }

  public String getRefreshKey() {
    return refreshKey;
  }

  public void setRefreshKey(String refreshKey) {
    this.refreshKey = refreshKey;
  }

  public Date getExpireTime() {
    return expireTime;
  }

  public void setExpireTime(Date expireTime) {
    this.expireTime = expireTime;
  }

  public Date getReExpireTime() {
    return reExpireTime;
  }

  public void setReExpireTime(Date reExpireTime) {
    this.reExpireTime = reExpireTime;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public Date getLoginTime() {
    return loginTime;
  }

  public void setLoginTime(Date loginTime) {
    this.loginTime = loginTime;
  }

  public Date getRefreshTime() {
    return refreshTime;
  }

  public void setRefreshTime(Date refreshTime) {
    this.refreshTime = refreshTime;
  }

}
